package com.lhy.consumeropenfeign.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author Liu Hangyu
 * @date 2022/1/7 22:27
 */
@FeignClient(name = "user", path = "")
public interface UserFeignService {

    //同一服务下 调用的controller 路径不同 path参数可以为空 或者不写
    @GetMapping("user/selectAll")
    String selectAll(@RequestParam("username") String username);

}
